e80ff20100e0322cf5fb6b9a4d815adea08aee4b,lost/src/main/java/com/mapzen/android/lost/internal/MockEngine.java,TraceThread,nodeToLocation,#NodeList#NodeList#number#,124
Before Change
location.setLatitude(Double.parseDouble(lat));
location.setLongitude(Double.parseDouble(lng));
location.setTime(System.currentTimeMillis());
location.setSpeed(Float.parseFloat(speedList.item(i).getFirstChild().getNodeValue()));
if (previous != null) {
location.setBearing(previous.bearingTo(location));
After Change
location.setLatitude(Double.parseDouble(lat));
location.setLongitude(Double.parseDouble(lng));
location.setTime(System.currentTimeMillis());
if (speedList.item(i) != null && speedList.item(i).getFirstChild() != null) {
location.setSpeed(
Float.parseFloat(speedList.item(i).getFirstChild().getNodeValue()));
} else {
location.setSpeed(1f);
}